package org.jeecg.modules.basic.plan.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.basic.outstocktype.entity.LwgyOutStockType;
import org.jeecg.modules.basic.plan.entity.LwgyMaterialPlanGoods;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Description: 采购计划
 * @Author: jeecg-boot
 * @Date:
 * @Version: V1.0
 */
@Data
@ApiModel(value="lwgy_score_sanitationPage对象", description="采购计划")
public class LwgyScoreSanitationPage {

	/**主键*/
	@ApiModelProperty(value = "主键")
	private String id;
	/**校区*/
	@Excel(name = "校区", width = 15,dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
	@Dict(dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
	@ApiModelProperty(value = "校区")
	private String studentCampus;
	/**申请时间*/
	@Excel(name = "申请时间", width = 15,format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "日期")
	private Date writeTime;
	/**申请人*/
	@Excel(name = "申请人", width = 15)
	@ApiModelProperty(value = "申请人")
	private String writerId;
	/**申请单号*/
	@Excel(name = "申请单号", width = 15)
	@ApiModelProperty(value = "申请单号")
	private String stockNo;
	/**备注*/
	@Excel(name = "申请备注", width = 15)
	@ApiModelProperty(value = "申请备注")
	private String note;
	/**审核状态*/
	@Excel(name = "审核状态", width = 15,dicCode = "plan_state")
	@ApiModelProperty(value = "审核状态")
	@Dict(dicCode = "plan_state")
	private String state;
	/**审核时间*/
	@Excel(name = "审核时间", width = 15,format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "审核日期")
	private Date checkTime;
	/**审核人*/
	@Excel(name = "审核人", width = 15)
	@ApiModelProperty(value = "审核人")
	private String checkId;

	/**采购进度*/
	/*@Excel(name = "采购进度", width = 15)*/
	@ApiModelProperty(value = "采购进度")
	private String progress;
	/**入库进度*/
	/* @Excel(name = "入库进度", width = 15)*/
	@ApiModelProperty(value = "入库进度")
	private Double inStockProgress;

	/**审核备注*/
	@Excel(name = "审核备注", width = 15)
	@ApiModelProperty(value = "审核备注")
	private String checkNote;

	/**审批状态*/
	@Excel(name = "审批状态", width = 15,dicCode = "review_state")
	@ApiModelProperty(value = "审批状态")
	@Dict(dicCode = "review_state")
	private String reviewState;  //未审批0，审批通过1审批未通过2
	/**审批时间*/
	@Excel(name = "审批时间", width = 15,format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "审批日期")
	private Date  reviewTime;
	/**审批人*/
	@Excel(name = "审批人", width = 15)
	@ApiModelProperty(value = "审批人")
	private String  reviewId;
	/**审批人备注*/
	@Excel(name = "审批人备注", width = 15)
	@ApiModelProperty(value = "审批人备注")
	private String  reviewNote;


	/**所属仓库*/
	@Excel(name = "仓库名字", width = 15,dictTable = "lwgy_material_inventory",dicCode = "id",dicText = "inventory_name")
	@Dict(dictTable = "lwgy_material_inventory",dicCode = "id",dicText = "inventory_name")
	@ApiModelProperty(value = "仓库名字")
	private String name;
	/**日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "日期")
	private Date createTime;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd  HH:mm:ss")
	@ApiModelProperty(value = "修改时间")
	private Date updateTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
	private String updateBy;

	private String goodsId;
	private String itemName;
	private String category;
	private String planNum;
	private String buyNum;

	private BigDecimal price;

	private String planId;
	@ExcelCollection(name="计划仓库")
	@ApiModelProperty(value = "计划仓库")
	private List<LwgyMaterialPlanGoods> lwgyMaterialPlanGoodsList;

	@Dict(dictTable = "lwgy_material_supplier",dicCode = "id",dicText = "supplier_name")
	@ApiModelProperty(value = "名字")
	private String providerName;

	@Dict(dictTable = "lwgy_in_stocktype",dicCode = "id",dicText = "in_stock_name")
	private String inStockMethod;

	private String specs;

	private String brand;

	private String measurement;

	private String ids;




}
